#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time


def timer(func):
    def wrapper(*args, **kwargs):
        start = time.time()
        res = func(*args, **kwargs)
        end = time.time()
        print("程序运行时长: {}".format(end - start))
        return res

    return wrapper


@timer              # home = timer(home)
def home(tip):
    print("传递结果是: {}".format(tip))


home("hello")